package com.people.core.log.utils;

import com.people.core.log.entity.LogInfo;

/**
 * @author zhenglin
 * @date 2022/5/18
 */
public class LogInfoThreadLocal {

    private static final ThreadLocal<LogInfo> LOG_INFO_THREAD_LOCAL = new ThreadLocal<>();

    public static LogInfo get() {
        return LOG_INFO_THREAD_LOCAL.get();
    }

    public static void set(LogInfo logInfo) {
        LOG_INFO_THREAD_LOCAL.set(logInfo);
    }

    public static void remove() {
        LOG_INFO_THREAD_LOCAL.remove();
    }
}
